<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><s:text name="subscribersList"/></title>
<link href="<s:url value="/css/style.css"/>" rel="stylesheet" type="text/css" />
<link href="<s:url value="/css/admin.css"/>" rel="stylesheet" type="text/css" />
<script src="<s:url value="/js/jquery.js"/>" type="text/javascript"></script>
</head>
<body>
<div class="container">
	<div class="title"><s:text name="subscribersList"/></div>
	<div class="content">

		<table class="tab1">
			<thead>
				<tr>
					<td width="5%">序号</td>
					<td width="10%">邮件地址</td>
					<td width="10%">订阅城市</td>
					<td width="15%">操作</td>
				</tr>
			</thead>
			<tbody class="center">
			<s:if test="!subscribers.empty">
			<s:iterator value="subscribers" var="s" status="status">
				<tr>
					<td><s:property value="#status.count"/></td>
					<td>${email}</td>
					<td>${city.name}</td>
					<td> 
						<a href="<s:url value="/admin/email/%{id}?_method=delete"/>" onclick="return delConfirm();">
							<s:text name="delete"/></a>
					</td>
				</tr>
			</s:iterator>	
			</s:if>
			<s:else>
				<tr>
					<td colspan="4"><s:text name="nodata"/></td>
				</tr>
			</s:else>
			</tbody>
		</table>

		<div class="padding">
			<s:include value="/page/common/page.jsp" />
		</div>

	</div>
</div>
</body>
</html>